/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: QuartzTestTask
 * Author:   pc
 * Date:     2019/9/6 15:03
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.example.rabbitmqdemo.task;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;

/**
 * 〈功能：〉<br> 
 * 〈〉
 * @author liuhaoran
 * @create 2019/9/6 15:03
 * @since 1.0.0
 */
@DisallowConcurrentExecution
public class QuartzTestTask extends QuartzJobBean {
	@Override
	protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
		// 任务
		System.out.println("刷新数据是否付款");
		try {
			Thread.sleep(2000);
		}catch (InterruptedException e){
			e.printStackTrace();
		}
		System.out.println("付款把redis的数据存入数据库中");
	}


}